package com.jsb.laundry.common.enums;

/**
 * 市
 */
public enum UserAddressCityTown {

    北京市110100(110100, "北京市"),
    上海市310100(310100, "上海市"),
    天津市120100(120100, "天津市"),
    重庆市500100(500100, "重庆市"),
    石家庄市130100(130100, "石家庄市"),
    唐山市130200(130200, "唐山市"),
    秦皇岛市130300(130300, "秦皇岛市"),
    邯郸市130400(130400, "邯郸市"),
    邢台市130500(130500, "邢台市"),
    保定市130600(130600, "保定市"),
    张家口市130700(130700, "张家口市"),
    承德市130800(130800, "承德市"),
    沧州市130900(130900, "沧州市"),
    廊坊市131000(131000, "廊坊市"),
    衡水市131100(131100, "衡水市"),
    郑州市410100(410100, "郑州市"),
    开封市410200(410200, "开封市"),
    洛阳市410300(410300, "洛阳市"),
    平顶山市410400(410400, "平顶山市"),
    安阳市410500(410500, "安阳市"),
    鹤壁市410600(410600, "鹤壁市"),
    新乡市410700(410700, "新乡市"),
    焦作市410800(410800, "焦作市"),
    濮阳市410900(410900, "濮阳市"),
    许昌市411000(411000, "许昌市"),
    漯河市411100(411100, "漯河市"),
    三门峡市411200(411200, "三门峡市"),
    南阳市411300(411300, "南阳市"),
    商丘市411400(411400, "商丘市"),
    信阳市411500(411500, "信阳市"),
    周口市411600(411600, "周口市"),
    驻马店市411700(411700, "驻马店市"),
    济源市419001(419001, "济源市"),
    济南市370100(370100, "济南市"),
    青岛市370200(370200, "青岛市"),
    淄博市370300(370300, "淄博市"),
    枣庄市370400(370400, "枣庄市"),
    东营市370500(370500, "东营市"),
    烟台市370600(370600, "烟台市"),
    潍坊市370700(370700, "潍坊市"),
    济宁市370800(370800, "济宁市"),
    泰安市370900(370900, "泰安市"),
    威海市371000(371000, "威海市"),
    日照市371100(371100, "日照市"),
    莱芜市371200(371200, "莱芜市"),
    临沂市371300(371300, "临沂市"),
    德州市371400(371400, "德州市"),
    聊城市371500(371500, "聊城市"),
    滨州市371600(371600, "滨州市"),
    菏泽市371700(371700, "菏泽市"),
    太原市140100(140100, "太原市"),
    大同市140200(140200, "大同市"),
    阳泉市140300(140300, "阳泉市"),
    长治市140400(140400, "长治市"),
    晋城市140500(140500, "晋城市"),
    朔州市140600(140600, "朔州市"),
    晋中市140700(140700, "晋中市"),
    运城市140800(140800, "运城市"),
    忻州市140900(140900, "忻州市"),
    临汾市141000(141000, "临汾市"),
    吕梁市141100(141100, "吕梁市"),
    呼和浩特市150100(150100, "呼和浩特市"),
    包头市150200(150200, "包头市"),
    乌海市150300(150300, "乌海市"),
    赤峰市150400(150400, "赤峰市"),
    通辽市150500(150500, "通辽市"),
    鄂尔多斯市150600(150600, "鄂尔多斯市"),
    呼伦贝尔市150700(150700, "呼伦贝尔市"),
    巴彦淖尔市150800(150800, "巴彦淖尔市"),
    乌兰察布市150900(150900, "乌兰察布市"),
    兴安盟152200(152200, "兴安盟"),
    锡林郭勒盟152500(152500, "锡林郭勒盟"),
    阿拉善盟152900(152900, "阿拉善盟"),
    沈阳市210100(210100, "沈阳市"),
    大连市210200(210200, "大连市"),
    鞍山市210300(210300, "鞍山市"),
    抚顺市210400(210400, "抚顺市"),
    本溪市210500(210500, "本溪市"),
    丹东市210600(210600, "丹东市"),
    锦州市210700(210700, "锦州市"),
    营口市210800(210800, "营口市"),
    阜新市210900(210900, "阜新市"),
    辽阳市211000(211000, "辽阳市"),
    盘锦市211100(211100, "盘锦市"),
    铁岭市211200(211200, "铁岭市"),
    朝阳市211300(211300, "朝阳市"),
    葫芦岛市211400(211400, "葫芦岛市"),
    长春市220100(220100, "长春市"),
    吉林市220200(220200, "吉林市"),
    四平市220300(220300, "四平市"),
    辽源市220400(220400, "辽源市"),
    通化市220500(220500, "通化市"),
    白山市220600(220600, "白山市"),
    松原市220700(220700, "松原市"),
    白城市220800(220800, "白城市"),
    延边朝鲜族自治州222400(222400, "延边朝鲜族自治州"),
    哈尔滨市230100(230100, "哈尔滨市"),
    齐齐哈尔市230200(230200, "齐齐哈尔市"),
    鸡西市230300(230300, "鸡西市"),
    鹤岗市230400(230400, "鹤岗市"),
    双鸭山市230500(230500, "双鸭山市"),
    大庆市230600(230600, "大庆市"),
    伊春市230700(230700, "伊春市"),
    佳木斯市230800(230800, "佳木斯市"),
    七台河市230900(230900, "七台河市"),
    牡丹江市231000(231000, "牡丹江市"),
    黑河市231100(231100, "黑河市"),
    绥化市231200(231200, "绥化市"),
    大兴安岭地区232700(232700, "大兴安岭地区"),
    南京市320100(320100, "南京市"),
    无锡市320200(320200, "无锡市"),
    徐州市320300(320300, "徐州市"),
    常州市320400(320400, "常州市"),
    苏州市320500(320500, "苏州市"),
    南通市320600(320600, "南通市"),
    连云港市320700(320700, "连云港市"),
    淮安市320800(320800, "淮安市"),
    盐城市320900(320900, "盐城市"),
    扬州市321000(321000, "扬州市"),
    镇江市321100(321100, "镇江市"),
    泰州市321200(321200, "泰州市"),
    宿迁市321300(321300, "宿迁市"),
    杭州市330100(330100, "杭州市"),
    宁波市330200(330200, "宁波市"),
    温州市330300(330300, "温州市"),
    嘉兴市330400(330400, "嘉兴市"),
    湖州市330500(330500, "湖州市"),
    绍兴市330600(330600, "绍兴市"),
    金华市330700(330700, "金华市"),
    衢州市330800(330800, "衢州市"),
    舟山市330900(330900, "舟山市"),
    台州市331000(331000, "台州市"),
    丽水市331100(331100, "丽水市"),
    合肥市340100(340100, "合肥市"),
    芜湖市340200(340200, "芜湖市"),
    蚌埠市340300(340300, "蚌埠市"),
    淮南市340400(340400, "淮南市"),
    马鞍山市340500(340500, "马鞍山市"),
    淮北市340600(340600, "淮北市"),
    铜陵市340700(340700, "铜陵市"),
    安庆市340800(340800, "安庆市"),
    黄山市341000(341000, "黄山市"),
    滁州市341100(341100, "滁州市"),
    阜阳市341200(341200, "阜阳市"),
    宿州市341300(341300, "宿州市"),
    六安市341500(341500, "六安市"),
    亳州市341600(341600, "亳州市"),
    池州市341700(341700, "池州市"),
    宣城市341800(341800, "宣城市"),
    福州市350100(350100, "福州市"),
    厦门市350200(350200, "厦门市"),
    莆田市350300(350300, "莆田市"),
    三明市350400(350400, "三明市"),
    泉州市350500(350500, "泉州市"),
    漳州市350600(350600, "漳州市"),
    南平市350700(350700, "南平市"),
    龙岩市350800(350800, "龙岩市"),
    宁德市350900(350900, "宁德市"),
    南昌市360100(360100, "南昌市"),
    景德镇市360200(360200, "景德镇市"),
    萍乡市360300(360300, "萍乡市"),
    九江市360400(360400, "九江市"),
    新余市360500(360500, "新余市"),
    鹰潭市360600(360600, "鹰潭市"),
    赣州市360700(360700, "赣州市"),
    吉安市360800(360800, "吉安市"),
    宜春市360900(360900, "宜春市"),
    抚州市361000(361000, "抚州市"),
    上饶市361100(361100, "上饶市"),
    武汉市420100(420100, "武汉市"),
    黄石市420200(420200, "黄石市"),
    十堰市420300(420300, "十堰市"),
    宜昌市420500(420500, "宜昌市"),
    襄阳市420600(420600, "襄阳市"),
    鄂州市420700(420700, "鄂州市"),
    荆门市420800(420800, "荆门市"),
    孝感市420900(420900, "孝感市"),
    荆州市421000(421000, "荆州市"),
    黄冈市421100(421100, "黄冈市"),
    咸宁市421200(421200, "咸宁市"),
    随州市421300(421300, "随州市"),
    恩施土家族苗族自治州422800(422800, "恩施土家族苗族自治州"),
    仙桃市429004(429004, "仙桃市"),
    潜江市429005(429005, "潜江市"),
    天门市429006(429006, "天门市"),
    神农架林区429021(429021, "神农架林区"),
    长沙市430100(430100, "长沙市"),
    株洲市430200(430200, "株洲市"),
    湘潭市430300(430300, "湘潭市"),
    衡阳市430400(430400, "衡阳市"),
    邵阳市430500(430500, "邵阳市"),
    岳阳市430600(430600, "岳阳市"),
    常德市430700(430700, "常德市"),
    张家界市430800(430800, "张家界市"),
    益阳市430900(430900, "益阳市"),
    郴州市431000(431000, "郴州市"),
    永州市431100(431100, "永州市"),
    怀化市431200(431200, "怀化市"),
    娄底市431300(431300, "娄底市"),
    湘西土家族苗族自治州433100(433100, "湘西土家族苗族自治州"),
    广州市440100(440100, "广州市"),
    韶关市440200(440200, "韶关市"),
    深圳市440300(440300, "深圳市"),
    珠海市440400(440400, "珠海市"),
    汕头市440500(440500, "汕头市"),
    佛山市440600(440600, "佛山市"),
    江门市440700(440700, "江门市"),
    湛江市440800(440800, "湛江市"),
    茂名市440900(440900, "茂名市"),
    肇庆市441200(441200, "肇庆市"),
    惠州市441300(441300, "惠州市"),
    梅州市441400(441400, "梅州市"),
    汕尾市441500(441500, "汕尾市"),
    河源市441600(441600, "河源市"),
    阳江市441700(441700, "阳江市"),
    清远市441800(441800, "清远市"),
    东莞市441900(441900, "东莞市"),
    中山市442000(442000, "中山市"),
    潮州市445100(445100, "潮州市"),
    揭阳市445200(445200, "揭阳市"),
    云浮市445300(445300, "云浮市"),
    南宁市450100(450100, "南宁市"),
    柳州市450200(450200, "柳州市"),
    桂林市450300(450300, "桂林市"),
    梧州市450400(450400, "梧州市"),
    北海市450500(450500, "北海市"),
    防城港市450600(450600, "防城港市"),
    钦州市450700(450700, "钦州市"),
    贵港市450800(450800, "贵港市"),
    玉林市450900(450900, "玉林市"),
    百色市451000(451000, "百色市"),
    贺州市451100(451100, "贺州市"),
    河池市451200(451200, "河池市"),
    来宾市451300(451300, "来宾市"),
    崇左市451400(451400, "崇左市"),
    海口市460100(460100, "海口市"),
    三亚市460200(460200, "三亚市"),
    三沙市460300(460300, "三沙市"),
    儋州市460400(460400, "儋州市"),
    直辖县级469000(469000, "直辖县级"),
    成都市510100(510100, "成都市"),
    自贡市510300(510300, "自贡市"),
    攀枝花市510400(510400, "攀枝花市"),
    泸州市510500(510500, "泸州市"),
    德阳市510600(510600, "德阳市"),
    绵阳市510700(510700, "绵阳市"),
    广元市510800(510800, "广元市"),
    遂宁市510900(510900, "遂宁市"),
    内江市511000(511000, "内江市"),
    乐山市511100(511100, "乐山市"),
    南充市511300(511300, "南充市"),
    眉山市511400(511400, "眉山市"),
    宜宾市511500(511500, "宜宾市"),
    广安市511600(511600, "广安市"),
    达州市511700(511700, "达州市"),
    雅安市511800(511800, "雅安市"),
    巴中市511900(511900, "巴中市"),
    资阳市512000(512000, "资阳市"),
    阿坝藏族羌族自治州513200(513200, "阿坝藏族羌族自治州"),
    甘孜藏族自治州513300(513300, "甘孜藏族自治州"),
    凉山彝族自治州513400(513400, "凉山彝族自治州"),
    贵阳市520100(520100, "贵阳市"),
    六盘水市520200(520200, "六盘水市"),
    遵义市520300(520300, "遵义市"),
    安顺市520400(520400, "安顺市"),
    毕节市520500(520500, "毕节市"),
    铜仁市520600(520600, "铜仁市"),
    黔西南布依族苗族自治州522300(522300, "黔西南布依族苗族自治州"),
    黔东南苗族侗族自治州522600(522600, "黔东南苗族侗族自治州"),
    黔南布依族苗族自治州522700(522700, "黔南布依族苗族自治州"),
    昆明市530100(530100, "昆明市"),
    曲靖市530300(530300, "曲靖市"),
    玉溪市530400(530400, "玉溪市"),
    保山市530500(530500, "保山市"),
    昭通市530600(530600, "昭通市"),
    丽江市530700(530700, "丽江市"),
    普洱市530800(530800, "普洱市"),
    临沧市530900(530900, "临沧市"),
    楚雄彝族自治州532300(532300, "楚雄彝族自治州"),
    红河哈尼族彝族自治州532500(532500, "红河哈尼族彝族自治州"),
    文山壮族苗族自治州532600(532600, "文山壮族苗族自治州"),
    西双版纳傣族自治州532800(532800, "西双版纳傣族自治州"),
    大理白族自治州532900(532900, "大理白族自治州"),
    德宏傣族景颇族自治州533100(533100, "德宏傣族景颇族自治州"),
    怒江傈僳族自治州533300(533300, "怒江傈僳族自治州"),
    迪庆藏族自治州533400(533400, "迪庆藏族自治州"),
    西安市610100(610100, "西安市"),
    铜川市610200(610200, "铜川市"),
    宝鸡市610300(610300, "宝鸡市"),
    咸阳市610400(610400, "咸阳市"),
    渭南市610500(610500, "渭南市"),
    延安市610600(610600, "延安市"),
    汉中市610700(610700, "汉中市"),
    榆林市610800(610800, "榆林市"),
    安康市610900(610900, "安康市"),
    商洛市611000(611000, "商洛市"),
    兰州市620100(620100, "兰州市"),
    嘉峪关市620200(620200, "嘉峪关市"),
    金昌市620300(620300, "金昌市"),
    白银市620400(620400, "白银市"),
    天水市620500(620500, "天水市"),
    武威市620600(620600, "武威市"),
    张掖市620700(620700, "张掖市"),
    平凉市620800(620800, "平凉市"),
    酒泉市620900(620900, "酒泉市"),
    庆阳市621000(621000, "庆阳市"),
    定西市621100(621100, "定西市"),
    陇南市621200(621200, "陇南市"),
    临夏回族自治州622900(622900, "临夏回族自治州"),
    甘南藏族自治州623000(623000, "甘南藏族自治州"),
    西宁市630100(630100, "西宁市"),
    海东市630200(630200, "海东市"),
    海北藏族自治州632200(632200, "海北藏族自治州"),
    黄南藏族自治州632300(632300, "黄南藏族自治州"),
    海南藏族自治州632500(632500, "海南藏族自治州"),
    果洛藏族自治州632600(632600, "果洛藏族自治州"),
    玉树藏族自治州632700(632700, "玉树藏族自治州"),
    海西蒙古族藏族自治州632800(632800, "海西蒙古族藏族自治州"),
    银川市640100(640100, "银川市"),
    石嘴山市640200(640200, "石嘴山市"),
    吴忠市640300(640300, "吴忠市"),
    固原市640400(640400, "固原市"),
    中卫市640500(640500, "中卫市"),
    拉萨市540100(540100, "拉萨市"),
    日喀则市540200(540200, "日喀则市"),
    昌都市540300(540300, "昌都市"),
    山南地区542200(542200, "山南地区"),
    那曲地区542400(542400, "那曲地区"),
    阿里地区542500(542500, "阿里地区"),
    林芝市542600(542600, "林芝市"),
    乌鲁木齐市650100(650100, "乌鲁木齐市"),
    克拉玛依市650200(650200, "克拉玛依市"),
    吐鲁番市652100(652100, "吐鲁番市"),
    哈密地区652200(652200, "哈密地区"),
    昌吉回族自治州652300(652300, "昌吉回族自治州"),
    博尔塔拉蒙古自治州652700(652700, "博尔塔拉蒙古自治州"),
    巴音郭楞蒙古自治州652800(652800, "巴音郭楞蒙古自治州"),
    阿克苏地区652900(652900, "阿克苏地区"),
    克孜勒苏柯尔克孜自治州653000(653000, "克孜勒苏柯尔克孜自治州"),
    喀什地区653100(653100, "喀什地区"),
    和田地区653200(653200, "和田地区"),
    伊犁哈萨克自治州654000(654000, "伊犁哈萨克自治州"),
    塔城地区654200(654200, "塔城地区"),
    阿勒泰地区654300(654300, "阿勒泰地区"),
    直辖县级659000(659000, "直辖县级"),
    台北市710100(710100, "台北市"),
    高雄市710200(710200, "高雄市"),
    基隆市710300(710300, "基隆市"),
    台中市710400(710400, "台中市"),
    台南市710500(710500, "台南市"),
    新竹市710600(710600, "新竹市"),
    嘉义市710700(710700, "嘉义市"),
    新北市710800(710800, "新北市"),
    宜兰县712200(712200, "宜兰县"),
    桃园县712300(712300, "桃园县"),
    新竹县712400(712400, "新竹县"),
    苗栗县712500(712500, "苗栗县"),
    彰化县712700(712700, "彰化县"),
    南投县712800(712800, "南投县"),
    云林县712900(712900, "云林县"),
    嘉义县713000(713000, "嘉义县"),
    屏东县713300(713300, "屏东县"),
    台东县713400(713400, "台东县"),
    花莲县713500(713500, "花莲县"),
    澎湖县713600(713600, "澎湖县"),
    金门县713700(713700, "金门县"),
    连江县713800(713800, "连江县"),
    香港岛810100(810100, "香港岛"),
    九龙810200(810200, "九龙"),
    新界810300(810300, "新界"),
    澳门半岛820100(820100, "澳门半岛"),
    氹仔岛820200(820200, "氹仔岛"),
    路环岛820300(820300, "路环岛"),


    ;
    private int id;
    private String types;
    private UserAddressCityTown(int id,String types) {
        this.types = types;
        this.id = id;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getTypes() {
        return types;
    }

    public void setTypes(String types) {
        this.types = types;
    }
    /**
     * 根据int类型的index,找到对应Type
     * @param index
     * @return
     */
    public static UserAddressCityTown stateOf(int index){
        for (UserAddressCityTown id:values()){
            if (id.getId()==index){
                return id;
            }
        }
        return null;
    }
    /**
     * 根据int类型的index,找到对应的String的值
     * @param index
     * @return
     */
    public static String valuesOf(int index){
        for (UserAddressCityTown id:values()){
            if (id.getId()==index){
                return id.getTypes();
            }
        }
        return "未知";
    }

    /**
     * 根据地区编号查询地区
     *
     * @param cityId 地区ID
     * @return
     */
    public static String findCityById(String cityId){
        for (UserAddressCityTown id:values()){
            if (id.getId()==Integer.parseInt(cityId)){
                return id.getTypes();
            }
        }
        return null;
    }

    /**
     * 根据地区查询地区编号
     *
     * @param cityName 地区名
     * @return
     */
    public static String findIdByCity(String cityName){
        for (UserAddressCityTown types:values()){
            if (types.getTypes().equals(cityName)){
                return String.valueOf(types.getId());
            }
        }
        return null;
    }

}
